Precache atoms before calling gdk_window_new().
authorMatthias Clasen <mclasen@redhat.com>
Tue, 27 Dec 2005 04:38:31 +0000 (04:38 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 27 Dec 2005 04:38:31 +0000 (04:38 +0000)
2005-12-26  Matthias Clasen  <mclasen@redhat.com>

* gdk/x11/gdkdisplay-x11.c (gdk_display_open): Precache atoms
before calling gdk_window_new().

ChangeLog
ChangeLog.pre-2-10
gdk/x11/gdkdisplay-x11.c

index 45769f85a43b549a664c0e43e44a7242a01051ca..be8363bf43387e5444fa27a2ba6462d0d1f801d1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-12-26  Matthias Clasen  <mclasen@redhat.com>
 
+       * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Precache atoms
+       before calling gdk_window_new().
+
        * gtk/gtktextbtree.c: Use the slice allocator for some other small
        auxiliary structures as well.
 
index 45769f85a43b549a664c0e43e44a7242a01051ca..be8363bf43387e5444fa27a2ba6462d0d1f801d1 100644 (file)
@@ -1,5 +1,8 @@
 2005-12-26  Matthias Clasen  <mclasen@redhat.com>
 
+       * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Precache atoms
+       before calling gdk_window_new().
+
        * gtk/gtktextbtree.c: Use the slice allocator for some other small
        auxiliary structures as well.
 
index 62fd4bde411c63a4a3e1913c5c66d002e9799fdf..263d37ab5cffbe62bc384e9a38ac24d86200c61d 100644 (file)
@@ -199,6 +199,8 @@ gdk_display_open (const gchar *display_name)
   attr.height = 10;
   attr.event_mask = 0;
 
+  _gdk_x11_precache_atoms (display, precache_atoms, G_N_ELEMENTS (precache_atoms));
+
   display_x11->leader_gdk_window = gdk_window_new (GDK_SCREEN_X11 (display_x11->default_screen)->root_window, 
                                                   &attr, GDK_WA_X | GDK_WA_Y);
   (_gdk_x11_window_get_toplevel (display_x11->leader_gdk_window))->is_leader = TRUE;
@@ -227,8 +229,6 @@ gdk_display_open (const gchar *display_name)
   if (_gdk_synchronize)
     XSynchronize (display_x11->xdisplay, True);
   
-  _gdk_x11_precache_atoms (display, precache_atoms, G_N_ELEMENTS (precache_atoms));
-
   class_hint = XAllocClassHint();
   class_hint->res_name = g_get_prgname ();